//
//  ApiClient.m
//  EduMobileTeacher
//
//  Created by zou tianyu on 13-8-19.
//  Copyright (c) 2013年 zou tianyu. All rights reserved.
//

#import "ApiClient.h"

static ApiClient *_sharedInstance;

@implementation ApiClient

- (id)init {
  self = [super init];
  if (self) {
    _apiUrlStringDic = [[NSDictionary alloc]initWithObjectsAndKeys:
                        @"oc/login78.aspx", API_LOGIN
                        ,nil];
  }
  return self;
}

+ (ApiClient *)sharedInstance {
  if (!_sharedInstance) {
    _sharedInstance = [[ApiClient alloc] init];
  }
  return _sharedInstance;
}

- (NSString *)urlStringForApi:(NSString *)api {
  return [NSString stringWithFormat:@"%@", [_apiUrlStringDic objectForKey:api]];
}

@end
